package com.zfl.controller;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.zfl.po.Major;
import com.zfl.service.MajorService;

@RestController
@RequestMapping(value="/major/")
public class MajorController {

    @Autowired
    private MajorService majorService;
    
    @RequestMapping(value="list",method=RequestMethod.GET)
    public List<Major> getAllMajors () {
        return majorService.getAllMajors();
    }
    
}
